package cn.sczhyt.modules.app.controller;

import cn.sczhyt.common.utils.PageUtils;
import cn.sczhyt.common.utils.R;
import cn.sczhyt.common.utils.UploadFileUtils;
import cn.sczhyt.modules.szhy.entity.MeetingMobileAppEntity;
import cn.sczhyt.modules.szhy.service.MeetingMobileAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;


/**
 * app安装包管理
 *
 * @author luojialin
 * @email 78357966@qq.com
 * @date 2021-04-14 09:36:23
 */
@RestController
@RequestMapping("app")
public class AppMeetingMobileAppController {
    @Autowired
    private MeetingMobileAppService meetingMobileAppService;

    /**
     * 判断是否强制更新
     * @param versionCode
     * @param request
     * @param response
     * @return
     */
    @GetMapping("/upgradeInfo/{versionCode}")
    public R upgradeInfo(@PathVariable("versionCode") String versionCode, HttpServletRequest request,HttpServletResponse response){

        return meetingMobileAppService.upgradeInfo(versionCode,request,response);
    }
}
